<?php
	global $Puzzle;
	
	
	// Add the javascript if the html view has been loaded
	
	$view_html = $Puzzle->PVM->execution->default_html;
	
	if ($this->view_html != null)
	{
		if (!$Puzzle->PVM->execution->default_html->yuimin_loaded)
		{
			$view_html->view_head->helper->addJS($Puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "yui-min.js");
			$Puzzle->PVM->execution->default_html->yuimin_loaded = true;
		}
	}
?>
